package com.dtstack.controller;

import com.dtstack.po.Person;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author chuanbai
 * @date 2024/2/25 10:39
 * @deception
 */
@RestController
public class SayHelloController {

    @Resource
    private Person person;

    @GetMapping("/get")
    public String get(){
        System.out.println("8080被掉用");
        return "8080被掉用  "+person.getName()+"--"+person.getAge();
    }
}
